/**
 * Created by alan on 17-4-30.
 */
import Login from '../pages/Login.vue'
import Main from '../pages/Main.vue'

const routes = [{
  path:'/login',
  component:Login
},{
  name:'志愿合大',
  path:'/',
  redirect:'/home',
  component:Main,
  children:[{
    name:'首页',
    path:'/home',
    component:resolve => require(['../pages/Home.vue'], resolve),
  },{
    name: '个人信息',
    path: '/PersonInfo',
    component:resolve => require(['../pages/personCenter/PersonInfo.vue'], resolve)
  },{
    name: '组织中心',
    path: '/OrginzeCenter',
    component:resolve => require(['../pages/orginzeCenter/OrginzeCenter.vue'], resolve)
  },{
    name: '我的组织',
    path: '/OrginzerManage',
    component:resolve => require(['../pages/personCenter/OrginzerManage.vue'], resolve)
  }, {
    name: '发布活动',
    path: '/PublishOrginzerTrain',
    component:resolve => require(['../pages/activity/PublishOrginzerTrain.vue'], resolve)
  },
  {
    name: '培训活动',
    path: '/OrginzerTrain',
    component:resolve => require(['../pages/activity/OrginzerTrain.vue'], resolve)
  },{
    name: '空闲时间表',
    path: '/FreeSchedule',
    component:resolve => require(['../pages/personCenter/FreeSchedule.vue'], resolve)
  },{
    name: '空闲用户',
    path: '/FreeUserSchedule',
    component:resolve => require(['../pages/orginzeCenter/FreeUserSchedule.vue'], resolve)
  },
  {
    name: '资料上传',
    path: '/UploadData',
    component:resolve => require(['../pages/fileManagement/UploadData.vue'], resolve)
  },{
    name: '资料审核',
    path: '/DataCheck',
    component:resolve => require(['../pages/check/DataCheck.vue'], resolve)
  },{
    name:'审核详情',
    path:'SchoolCheckDetail',
    component:resolve => require(['../pages/check/SchoolCheckDetail.vue'], resolve)
  }, {
      name: '志愿活动',
      path: '/VolunteerTrain',
      component:resolve => require(['../pages/activity/VolunteerTrain.vue'], resolve)
    },{
    name: '募捐活动',
    path: '/FundraisingTrain',
    component:resolve => require(['../pages/activity/FundraisingTrain.vue'], resolve),
  },{
      name: '活动详情',
      path: '/ActivityDetail',
      component:resolve => require(['../pages/activity/ActivityDetail.vue'], resolve),
    },{
      name: '活动详情',
      path: '/ActivityCommentDetail',
      component:resolve => require(['../pages/activity/ActivityCommentDetail.vue'], resolve),
    },{
      name: '活动评价',
      path: '/ActivityComment',
      component:resolve => require(['../pages/activity/ActivityComment.vue'], resolve),
    },{
      name: '募捐活动',
      path: '/PublishFundraisiongActivity',
      component:resolve => require(['../pages/activity/PublishFundraisiongActivity.vue'], resolve),
    }]
  },{
  path:'/404',
  component:resolve => require(['../pages/404.vue'], resolve)
},{
  path:'*',
  redirect:{path:'/404'}
}];

export default routes
